<div class="container-fluid">
	<div class="row-fluid">
		<div class="span12">
			<h1>
				<em><span class="marker"><span class="label">回库登记</span></span></em>
			</h1>
			<div>
				<div class="input-append">订单编号
                   <input class="span2" id="appendedInputButton" ng-model="queryorderid" type="text">
                    <button class="btn btn-danger" type="button"  ng-click="searchByorderId();">Go</button>
</div>
			</div>
			<br>
			<br>
			<table class="table table-striped table-hover">
				<thead>
					<tr  >
						<th>
							订单编号
						</th>
						<th>
							订单状态
						</th>
						<th>
							玩具名称
						</th>
						<th>
							预约编号
						</th>
						<th>
							用户名称
						</th>
						<th>
							用户地址
						</th>
						<th>
							联系电话
						</th>
						<th>
							订单创建时间
						</th>
					</tr>
				</thead>
				<tbody>
						<tr ng-repeat="item in orderlist">
						<td>{{item.orderId}}</td>
						<td>{{item.status|converorderstatus}}</td>
						<td>{{item.toy.toyName}}</td>
						<td>{{item.wishId}}</td>
						<td>{{item.user.username}}</td>
						<td>{{item.user.address}}</td>
						<td>{{item.user.mobile}}</td>
						<td>{{item.confirmTime.time|timestampToDate}}</td>
						<td>
							<button class="btn btn-small btn-primary" type="button" data-toggle="modal" data-target="#orderbackModal" ng-click="setorderId(item.orderId);">确认回库</button>
						</td>

						</tr>
				
				</tbody>
			</table>
				
			</div>
		</div>
	</div>
</div>

<div class="modal fade" id="orderbackModal" tabindex="-1" role="dialog" 
   aria-labelledby="myModalLabel" aria-hidden="true">
   <div class="modal-dialog">
      <div class="modal-content">
         <div class="modal-header">
            <button type="button" class="close" 
               data-dismiss="modal" aria-hidden="true">
                  &times;
            </button>
            <h4 class="modal-title" id="myModalLabel">
               创建快递单
            </h4>
         </div>
         <div class="modal-body">
         <div class="form-group">
            	<label for="firstname" class="col-sm-2 control-label">快递单号</label>
      			<div class="">
         		<input type="text" class="form-control" id="express" ng-model='newexpresscode'
            	placeholder="请输入快递单号">
            	</div>
        </div>
        <div class="form-group">
            	<label for="firstname" class="col-sm-2 control-label" >缺件描述</label>
      			<div class="">
         		<textarea class="form-control" rows="3" ng-model='newlostdesc'></textarea>
            	</div>
        </div>
         </div>
         <div class="modal-footer">
            <button type="button" class="btn btn-default" 
               data-dismiss="modal">关闭
            </button>
            <button type="button" class="btn btn-primary" ng-click="orderback();" data-dismiss="modal">
               确定
            </button>
         </div>
      </div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>

